fun PolyglotContext.java(source: String, name: String? = null): PolyglotValue
Execute the given Java source code as an interactive snippet, returning the result. This is equivalent to calling PolyglotContext.evaluate and selecting Java as source language with an interactive source.